﻿package mortal.game.view.copy.crossMainCity.mainCityExpAddition
{
    import Framework.MQ.*;
    import Message.Command.*;
    import Message.Game.*;
    import com.gengine.debug.*;
    import mortal.game.cache.*;
    import mortal.game.mvc.*;
    import mortal.game.net.broadCast.*;
    import mortal.mvc.core.*;

    public class MainCityExpAdditionCommand extends BroadCastCall
    {

        public function MainCityExpAdditionCommand(param1:Object)
        {
            super(param1);
            return;
        }// end function

        override public function call(param1:MessageBlock) : void
        {
            Log.debug("I have receive MainCityExpAdditionCommand");
            var _loc_2:* = param1.messageHead.command;
            var _loc_3:* = param1.messageBase;
            switch(_loc_2)
            {
                case EGateCommand._ECmdGateMainCityExpInfo:
                {
                    Cache.instance.expAddition.isOpenWeek = SKingOpenExpInfo(_loc_3).isOpenToday == 1;
                    NetDispatcher.dispatchCmd(ServerCommand.MainCityExpActInfo, SKingOpenExpInfo(_loc_3));
                    break;
                }
                default:
                {
                    break;
                }
            }
            return;
        }// end function

    }
}
